/*
 * @Author: Penk
 * @LastEditors: Penk
 * @LastEditTime: 2022-04-20 14:47:11
 * @FilePath: \plugin-demo\devtools\PenkPanel.js
 */

// 监听按钮点击
var btn = document.querySelector("#testBtn");
btn.addEventListener("click", () => {
  var name = 'penk';
  chrome.devtools.inspectedWindow.eval(`console.log("hello,${name}!")`);
});